#gst-launch -v gnomevfssrc location=$1 ! decodebin ! tee name=audio audio. ! queue ! goom ! ffmpegcolorspace ! xvimagesink audio. ! queue ! alsasink
#gst-launch -v gnomevfssrc location=$1 ! decodebin ! tee name=audio audio. ! queue ! goom ! videoscale ! video/x-raw-rgb,width=320,height=240 ! ffmpegcolorspace  ! timeoverlay  ! tee name=vid vid. ! theoraenc quality=1  ! queue ! oggmux name=mux audio. ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! filesink location=mux.ogg vid. ! { queue ! xvimagesink }

#gst-launch -v gnomevfssrc location=$1 ! decodebin name=audio  gnomevfssrc location=$2 ! decodebin name=img ! queue ! videoscale ! video/x-raw-rgb,width=320,height=240 ! ffmpegcolorspace  ! timeoverlay  ! tee name=vid vid. ! theoraenc quality=1  ! queue ! oggmux name=mux audio. ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! filesink location=mux.ogg vid. ! queue ! xvimagesink 

#gst-launch -v gnomevfssrc location=$1 ! decodebin name=audio videotestsrc ! videomixer name=mix ! ffmpegcolorspace ! timeoverlay ! ffmpegcolorspace ! ximagesink  gnomevfssrc location=$2 ! decodebin  ! queue ! videoscale ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.  audio. ! queue ! alsasink

#gst-launch -v  videotestsrc !  queue !  "video/x-raw-yuv,framerate=15/1,width=320,height=240" ! mix. mix. !  videorate ! ffmpegcolorspace  !  x264enc  ! tee name=tee_v  ! queue name=vidq  ! avimux name=mux ! filesink location=mux.avi   gnomevfssrc location=$1 ! decodebin ! lame ! tee name=tee_a ! queue ! mux.  gnomevfssrc location=$2 !  decodebin ! queue ! videoscale ! "video/x-raw-yuv,width=320,height=240" !  ffmpegcolorspace ! alpha alpha=0.7 !  videomixer name=mix  { tee_a. ! queue ! decodebin ! alsasink tee_v. ! queue ! decodebin ! xvimagesink }
#audio. ! audioconvert ! queue ! alsasink

# ! alpha alpha=1.0

gst-launch   gnomevfssrc location="$1" ! decodebin ! tee name=audio !  audioconvert ! \
 lame ! tee name=tee_a ! queue ! mux.  \
 { mix. !  videorate ! ffmpegcolorspace  !  schroenc ! tee name=tee_v ! queue name=vq ! mux. } \
 { avimux name=mux ! filesink location=mux.avi }    { gnomevfssrc location="$2" !  decodebin ! queue ! videoscale ! \
"video/x-raw-yuv,width=320,height=240" !  ffmpegcolorspace !  videomixer name=mix } \
 { audio. !  monoscope !  queue  ! ffmpegcolorspace !   videoscale ! "video/x-raw-yuv,framerate=15/1,width=320,height=240" \
 ! alpha method=custom target-r=255 target-g=255 target-b=255 angle=15 ! alpha  alpha=0.5 ! mix. } 
#{ tee_a. ! queue ! decodebin!  alsasink } { tee_v. ! queue ! decodebin ! xvimagesink }

